home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10062 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mcrware.microware.com!jejones
  2. From: jejones@microware.com (James Jones)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: using cout like printf
  5. Date: 5 Mar 1996 23:26:59 GMT
  6. Organization: Microware Systems Corp., Des Moines, Iowa
  7. Message-ID: <4hiik3$c1h@mcrware.microware.com>
  8. References: <DnF5vA.GAD@actcom.co.il> <4hgb5j$5s5@ixnews3.ix.netcom.com>
  9. NNTP-Posting-Host: mork.microware.com
  10.  
  11. In article <4hgb5j$5s5@ixnews3.ix.netcom.com> Zachary Carter <zcarter@ix.netcom.com> writes:
  12. >     Yes, you have to put manipulators on the stream 'ahead' of the
  13. >thing which you want to format.  Look up 'manipulators' in the C++
  14. >book of your fancy.  Hope that helps... : )
  15.  
  16. I understand that aside from setw(), those manipulations of stream behavior
  17. hold until the next adjustment.  Is there some way to cause the stream to
  18. return to whatever its former state was (which of course isn't necessarily
  19. the default state) after outputing (sp?) something that you want output in
  20. a particular way?  (Say you have conditionally compiled debugging output
  21. that wants to print some value in hex.)
  22.  
  23.     James Jones
  24.  
  25. Opinions herein are those of the author, and not necessarily those of any
  26. organization.
  27.